package com.itlong.cloud.project.property;

import com.itlong.cloud.POJO.PO.ProjectPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * <desc>
 *      物业-系统管理-支付密码管理业务处理暴露接口
 * </desc>
 *
 * @createDate 2018/09/25
 */
@FeignClient(name = "project-service")
public interface IPropertyPayPasswordServiceClient {

    /**
     * <desc>
     *      修改支付密码
     * </desc>
     *
     * @param projectId 项目id
     * @param password 旧支付密码
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    @PostMapping(path = "/property/system/payPassword/updatePayPassword")
    Integer updatePayPassword(@RequestParam("projectId") String projectId,@RequestParam("password") String password);

    /**
     * <desc>
     *      获取项目支付密码详情
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    @PostMapping(path = "/property/system/payPassword/getProjectInfo")
    ProjectPO getProjectInfo(@RequestParam("projectId") String projectId);

    /**
     * <desc>
     *      验证银行卡信息
     * </desc>
     *
     * @param userName
     * @param bankCardNo
     * @return
     * @author Jiaqi.X
     * @createDate 2018/09/25
     */
    @PostMapping(path = "/property/system/payPassword/checkBankInfo")
    Integer checkBankInfo(@RequestParam("projectId") String projectId,
                          @RequestParam("userName") String userName,
                          @RequestParam("bankCardNo") String bankCardNo);
}
